<template>
	<el-dialog title="客户资料记录" :close-on-click-modal="true" :visible.sync="visible" width="80%">
		<div style="height: 420px;overflow-y:auto;">
		<el-table :data="recordList" border style="width: 100%;">
			<!-- <el-table-column prop="userName" header-align="center"  align="center" label="修改人">
			</el-table-column> -->
			<el-table-column prop="createDateTime" header-align="center"  align="center" label="修改时间">
				<template slot-scope="scope">
					<i class="el-icon-time"></i> {{ scope.row.createDateTime |formatDateTime }}
				</template>
			</el-table-column>
			<el-table-column prop="updateDesc" header-align="center"  align="center" label="备注">
			</el-table-column>
		</el-table>
		</div>
    </span>
	</el-dialog>
</template>

<script>
	import dateUtil from '@/utils/dateUtil'
	export default {
		data() {
			return {
				visible: false,
				dataForm: {
					
				},
				id: '',
				recordList: [],
			}
		},
		filters: {
			formatDateTime(timestamp) {
				return dateUtil.formatDateTime(timestamp)
			}
		},
		created() {

		},
		methods: {
			init(id) {
				var that = this
				that.visible = true
				this.$nextTick(() => {
					this.$http.post('/cc/customer/manage/records',{id}).then(res => {
						console.log(res)
						if(res.data.code === '0'){
							that.recordList = res.data.data
						}
					})
				})

			},

		}
	}
</script>